package com.ruoyi.fs.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fs.mapper.FsCourtAddressMappingMapper;
import com.ruoyi.fs.domain.FsCourtAddressMapping;
import com.ruoyi.fs.service.IFsCourtAddressMappingService;

/**
 * 法院地址匹配Service业务层处理
 * 
 * @author hero
 * @date 2024-12-17
 */
@Service
public class FsCourtAddressMappingServiceImpl implements IFsCourtAddressMappingService 
{
    @Autowired
    private FsCourtAddressMappingMapper fsCourtAddressMappingMapper;

    /**
     * 查询法院地址匹配
     * 
     * @param id 法院地址匹配主键
     * @return 法院地址匹配
     */
    @Override
    public FsCourtAddressMapping selectFsCourtAddressMappingById(Long id)
    {
        return fsCourtAddressMappingMapper.selectFsCourtAddressMappingById(id);
    }

    /**
     * 查询法院地址匹配列表
     * 
     * @param fsCourtAddressMapping 法院地址匹配
     * @return 法院地址匹配
     */
    @Override
    public List<FsCourtAddressMapping> selectFsCourtAddressMappingList(FsCourtAddressMapping fsCourtAddressMapping)
    {
        return fsCourtAddressMappingMapper.selectFsCourtAddressMappingList(fsCourtAddressMapping);
    }

    /**
     * 新增法院地址匹配
     * 
     * @param fsCourtAddressMapping 法院地址匹配
     * @return 结果
     */
    @Override
    public int insertFsCourtAddressMapping(FsCourtAddressMapping fsCourtAddressMapping)
    {
        return fsCourtAddressMappingMapper.insertFsCourtAddressMapping(fsCourtAddressMapping);
    }

    /**
     * 修改法院地址匹配
     * 
     * @param fsCourtAddressMapping 法院地址匹配
     * @return 结果
     */
    @Override
    public int updateFsCourtAddressMapping(FsCourtAddressMapping fsCourtAddressMapping)
    {
        return fsCourtAddressMappingMapper.updateFsCourtAddressMapping(fsCourtAddressMapping);
    }

    /**
     * 批量删除法院地址匹配
     * 
     * @param ids 需要删除的法院地址匹配主键
     * @return 结果
     */
    @Override
    public int deleteFsCourtAddressMappingByIds(Long[] ids)
    {
        return fsCourtAddressMappingMapper.deleteFsCourtAddressMappingByIds(ids);
    }

    /**
     * 删除法院地址匹配信息
     * 
     * @param id 法院地址匹配主键
     * @return 结果
     */
    @Override
    public int deleteFsCourtAddressMappingById(Long id)
    {
        return fsCourtAddressMappingMapper.deleteFsCourtAddressMappingById(id);
    }
}
